import { Component } from "react";
import { View, Text } from "@tarojs/components";
//引入Button组件
import { Button } from "antd-mobile";
import "./index.scss";

export default class Index extends Component {
  componentWillMount() { }

  componentDidMount() { }

  componentWillUnmount() { }

  componentDidShow() { }

  componentDidHide() { }

  render() {
    return (
      <View className='index'>
        <Text>Hello world!</Text>
        {/* 使用Button组件 */}
        <Button>
          一二三
        </Button>
        {/* 写一个普通的Text font-size:17px 字体大小与Button的字体大小相同 */}
        <Text className='hello'>一二三</Text>
      </View>
    );
  }
}
